/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package managedbean;

import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import session.stateless.SystemUserSessionBean;
import entity.SystemUserEntity;

/**
 *
 * @author wei
 */
@ManagedBean(name = "internalMessageDataTableBean")
@RequestScoped
public class InternalMessageDataTableBean {

    @EJB
    private SystemUserSessionBean userSessionBean;

    /** Creates a new instance of SystemUserDateTableBean */
    public InternalMessageDataTableBean() {
    }

    public List<SystemUserEntity> listMessagesReceived(SystemUserEntity user) {
        List<SystemUserEntity> users = userSessionBean.getAllSystemUsers();
        return users;
    }
}
